
package com.carsite.dao;

import java.util.List;

import com.carsite.dao.Dao;
import com.carsite.model.Item;

public interface ItemDao extends Dao {

    /**
     * Retrieves all of the items
     */
    public List getItems(Item item);

    /**
     * Gets item's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param itemId the item's itemId
     * @return item populated item object
     */
    public Item getItem(final Long itemId);

    /**
     * Saves a item's information
     * @param item the object to be saved
     */    
    public void saveItem(Item item);

    /**
     * Removes a item from the database by itemId
     * @param itemId the item's itemId
     */
    public void removeItem(final Long itemId);
}

